using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public enum Spawner_Mode{
	Single=1,
	Small,
	Medium,
	Large
}

public class Mob_Spawner : MonoBehaviour {

	// Use this for initialization
	private List<NPC_Base> Mobs;
	private Spawner_Mode Spawn_Mode=Spawner_Mode.Small;
	private float timer = 0f;
	
	void Awake()
	{
		Mobs = new List<NPC_Base>();
	}
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void InitSpawn(Spawner_Mode mode, int mob, Vector3 pos)
	{
		int mcount = 1;
		switch(mode)
		{
			case Spawner_Mode.Small:
				mcount = 3;
				break;
			case Spawner_Mode.Medium:
				mcount = 6;
				break;
			case Spawner_Mode.Large:
				mcount = 12;
				break;
		}
		
		NPC_Stats mb = MobStoreage.GetMobByID(mob);
		for(int i = 0; i<mcount; i++)
		{
			Mobs.Add(new NPC_Base(mb));
		}
	}
}
